import { createRouter, createWebHistory } from 'vue-router'
import Login from '@/views/Login.vue'

const constRouter = [
  {
    path: '',
    redirect: "/login"
  },
  {
    path: '/login',
    name: 'login',
    component: Login
  },
]

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: constRouter
})

export default router
